package com.gnerv.author.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.author.dto.ArticleDTO;
import com.gnerv.author.entity.Article;

import java.util.List;

/**
 * <p>
 * 博客平台-文章表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-15
 */
public interface IArticleService extends IService<Article> {

    boolean saveArticle(ArticleDTO articleDTO);

    boolean createArticle(Article article);

    boolean deleteArticle(String bId);

    boolean updateArticle(Article article);

    ArticleDTO selectArticle(String bId);

    List<ArticleDTO> listArticle(ArticleDTO articleDTO, Integer state);

    List<ArticleDTO> listArticleByCid(String cId, Integer state);

    boolean releaseArticle(String bId);

    boolean unReleaseArticle(String bId);
}
